import request from "@/utils/http/request";

// 获取品牌数据
export const reqTrademarkList = (page: number, limit: number) => {
  return request.get<any, any>(
    "/admin/product/baseTrademark/" + `${page}/${limit}`
  );
};

// 添加品牌或修改品牌
export const reqAddOrUpdateTrademark = (data: any) => {
  if (data.id) {
    return request.put<any, any>("/admin/product/baseTrademark/update", data);
  } else {
    return request.post<any, any>("/admin/product/baseTrademark/save", data);
  }
};

// 删除品牌
export const reqDeleteTrademark = (id: any) => {
  return request.delete<any, any>("/admin/product/baseTrademark/remove/" + id)
}
